from typing import List, Dict, Optional

from pydantic import BaseModel


class TrafficDetailBean(BaseModel):
    sip: str = ""
    spt: Optional[str] = ""
    dip: str = ""
    dpt: Optional[str] = ""
    protocols: Optional[List[str]] = []
    start_time: Optional[str] = ""

    # sip: str = "192.102.8.171"
    # spt: Optional[str] = "43717"
    # dip: str = "10.28.8.10"
    # dpt: Optional[str] = "53"
    # protocols: Optional[List[str]] = ["dns","tcp"]
    # start_time: Optional[str] = "2024/12/20 15:03:22"



